import random
n=int(input())
f=0
for i in range(n):
    x=random.randint(-100,100)
    y=random.randint(-100,100)
    if (x >= -7 and x <= 5 and y >= -8 and y <= 5 ):
        print(x,y)
        f=f+1
print('попал',f)